package com.zc.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zc.dao.ComployeeMapper;
import com.zc.po.Comployee;
import com.zc.service.ComployeeService;

@Service
public class ComployeeServiceImpl implements ComployeeService {
	@Autowired
	private ComployeeMapper comployeeMapper;

	@Override
	public List<Comployee> selectAll() {
		List<Comployee> selectAll = comployeeMapper.selectAll();
		return selectAll;
	}

	@Override
	public Comployee selectByPrimaryKey(String comployeeNo) {
		Comployee comployee = comployeeMapper.selectByPrimaryKey(comployeeNo);
		return comployee;
	}

	@Override
	public void insertSelective(Comployee comployee) {
		comployeeMapper.insertSelective(comployee);
		
	}

	@Override
	public void deleteByPrimaryKey(String eno) {
		comployeeMapper.deleteByPrimaryKey(eno);
	}

	@Override
	public List<Comployee> selectByPrimaryKey2(String eno) {
		List<Comployee> list = comployeeMapper.selectByPrimaryKey2(eno);
		return list;
	}

	@Override
	public List<Comployee> selectByPrimaryKey1(String dept) {
		List<Comployee> list = comployeeMapper.selectByPrimaryKey1(dept);
		return list;
	}

	@Override
	public List<Comployee> selectByPrimaryKey3(Comployee c) {
		List<Comployee> list = comployeeMapper.selectByPrimaryKey3(c);
		return list;
	}

	@Override
	public void updateByPrimaryKeySelective(Comployee comployee) {
		comployeeMapper.updateByPrimaryKeySelective(comployee);
		
	}
	
	
}
